package beikai.com.assistant.controller;


import beikai.com.assistant.common.domain.params.VillageParams;
import beikai.com.assistant.service.IVillageInfoService;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 小区信息 前端控制器
 * </p>
 *
 * @author beikai
 * @since 2021-12-19
 */
@RestController
@RequestMapping("/user/village-info-model")
public class VillageInfoController {

    @Autowired
    private IVillageInfoService villageInfoService;

    @PostMapping("/addVillage")
    public JSONObject addVillage(@RequestBody VillageParams villageParams){
        return villageInfoService.addVillage(villageParams);
    }
}

